#!/bin/bash

yum install -y epel-release git gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel nginx

systemctl enable nginx
systemctl start nginx || systemctl restart nginx

systemctl status nginx

nginx -version